import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import TypeNav from './components/TypeNav';
import Pagination from './components/pagination';
import Dialog from './components/Dialog';
// import Element from 'element-ui';

Vue.config.productionTip = false;

//注册全局组件
Vue.component(TypeNav.name, TypeNav);

Vue.component('Pagination', Pagination);

Vue.component(Dialog.name, Dialog);

import { Message } from 'element-ui';

Vue.prototype.$message = Message;

// Vue.use(Element, { size: 'small', zIndex: 3000 });

// 启动mock服务器 一加载mockServer.js文件 就相当于是启动mock服务器了
import './mock/mockServer';

new Vue({
    render: h => h(App),
    beforeCreate() {
        Vue.prototype.$bus = this;
    },
    router,
    store,
}).$mount('#app');
